import { DataSet, Transfer } from 'choerodon-ui/pro';
import React, { useMemo } from 'react';
import transferDS from './transferDataSet';

const { Option } = Transfer;

const transferSearch: React.FC = (): React.ReactElement => {
  const inputDataSet = useMemo(() => new DataSet(transferDS()), []);
  return (
    <>
      <Transfer dataSet={inputDataSet} name="last-name" searchable>
        <Option value="jack">Jack</Option>
        <Option value="lucy">Lucy</Option>
        <Option value="huazhen">Huazhen</Option>
      </Transfer>
    </>
  );
};

export default transferSearch;


